//定义Mongoose模式和模型
const mongoose = require('mongoose');
mongoose.set('debug', true);
// 定义一个Schema
const Schema = mongoose.Schema;

const userType = new Schema({
    username: String,
    age: Number,
    password: String
});

// 创建模型
const userModel = mongoose.model('user', userType);

module.exports = userModel;
